<script>
	export default {
		globalData:{
			tempDownInfo:{},
		},
		onLaunch: function() {
			console.log('App Launch')
			// this.$store.dispatch('tokenFlushUserInfo')
			
			//获取微信登录openid
			// #ifdef MP-WEIXIN
			this.$store.dispatch('handleWechatLogin')
			// #endif
			
			//注册事件监听
			this.registerEvent()
		},
		onShow: function(options) {
			let { share_uid, req_code } = options.query;
			if (share_uid) {
				console.log('---------onShow--------', share_uid)
				this.$u.vuex('vuex_share_uid', share_uid)
			}
			console.log('---------onShow--------',options.query)
			if (req_code) {
			    console.log('---------onShow--------',req_code)
			    this.$u.vuex('vuex_req_code', req_code)
			}
		},
		methods:{
			registerEvent(){
				console.log("-----registerEvent")
				
			}
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
	@import "static/icon.css";
	@import "static/main.css";
	.text-orange, .line-orange, .lines-orange{
		color: #FE7E00;
	}
	.bg-orange{
		background-color: #FE7E00;
	}
	.white{
		min-height: 100vh;
		background-color: #FFFFFF;
	}
	.slot-wrap {
		padding: 0 30rpx;
		font-size: 36rpx;
		color: #333;
	
		.cuIcon-back {
			font-size: 34rpx;
			margin-right: 16rpx;
		}
	}
	
	.placeholder-input{
		color: #FFFFFF;
	}
</style>
